﻿#include "CmdPolarCoordinateGraphSidebarAllVariableAxisChanged.h"
#include <QFile>
#include <QDebug>
#include "BaseModule/IBaseSignal.h"
#include "PostCommandPy.h"

namespace PostCommand
{
    CmdPolarCoordinateGraphSidebarAllVariableAxisChanged::CmdPolarCoordinateGraphSidebarAllVariableAxisChanged()
        : CommandBase()
    {
        this->initCmdName();
    }
    CmdPolarCoordinateGraphSidebarAllVariableAxisChanged::~CmdPolarCoordinateGraphSidebarAllVariableAxisChanged()
    {
    }

    bool CmdPolarCoordinateGraphSidebarAllVariableAxisChanged::execute()
    {
        // bool _success = false;
        emit IBaseSignalInstance->signal_polarCoordinateGraphSidebarAllVariableAxisChanged(m_mainWindowId, m_sVariableAxistCurrentText);
        return true;
    }

    void CmdPolarCoordinateGraphSidebarAllVariableAxisChanged::undo()
    {
    }

    void CmdPolarCoordinateGraphSidebarAllVariableAxisChanged::redo()
    {
        // execute();
    }

    void CmdPolarCoordinateGraphSidebarAllVariableAxisChanged::setPolarCoordinateGraphSidebarAllVariableAxisChanged(int mainWindowId, QString sVariableAxistCurrentText)
    {
        m_mainWindowId = mainWindowId;
        m_sVariableAxistCurrentText = sVariableAxistCurrentText;
    }

} // namespace PostCommand
